n = int(input('输入一个整数：'))
for i in range(n):
    print(('* '*i).center(n*3))

for i in range(n,0,-1):
    print(('* '*i).center(n*3))